﻿#pragma once

#include <QWidget>
#include <DockWidgetInterface.h>
#include "FileExplorerExport.h"

class FileSystemTreeWidget;

namespace Domy {

/**
 * @brief The FileExplorerWindow class
 * @note  文件浏览窗口
 */

class FILEEXPLORER_EXPORT FileExplorerWindow : public DockWidgetInterface
{
    Q_OBJECT

public:
    FileExplorerWindow(ActionEnableCtrl ctrl, QWidget *parent);
    ~FileExplorerWindow();

    virtual QDockWidget *createDockWidget() override;

signals:
    void signalOpenFile(const QString &file_path);

private:
    void initFileExplorer();

private:
    FileSystemTreeWidget *m_tree_widget;
};

} // namespace Domy
